package jmlee.basic;

import java.util.Scanner;

public class UpperCase {

	public static void main(String[] args) {
		int i,j;
		 
		Scanner sc = new Scanner(System.in);
		System.out.print("문자 입력 :");
		char x = sc.next().charAt(0);;
		
		if(x>='a' && x <='z'){
			i = (int)x;
			i = i - 32;
			x = (char)i;
			
			System.out.println("변환 : "+ x);
			
		}else if(x>='A' && x <='Z'){
			i = (int)x;
			i = i + 32;
			x = (char)i;
			
			System.out.println("변환 : "+ x);
		}else{
			System.out.println("잘못 입력하셨습니다.");
		}
	}

}
